UntypedApi<T>
Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class UntypedApi<T> : object, IUntypedApi
Properties
Db
View Source
Declaration
public IDbConnection Db { get; set; }
DbCmd
View Source
Declaration
public IDbCommand DbCmd { get; set; }
Methods
Exec<TReturn>(Func<IDbCommand, TReturn>)
View Source
Declaration
public TReturn Exec<TReturn>(Func<IDbCommand, TReturn> filter)
Returns
<TReturn>
Parameters
Type | Name |
---|---|
Func<IDbCommand,<TReturn>> | filter |
Type Parameters
TReturn
Exec<TReturn>(Func<IDbCommand, Task<TReturn>>)
View Source
Declaration
public Task<TReturn> Exec<TReturn>(Func<IDbCommand, Task<TReturn>> filter)
Returns
Task<<TReturn>>
Parameters
Type | Name |
---|---|
Func<IDbCommand,Task<<TReturn>>> | filter |
Type Parameters
TReturn
Exec(Action<IDbCommand>)
View Source
Declaration
public void Exec(Action<IDbCommand> filter)
Parameters
Type | Name |
---|---|
Action<IDbCommand> | filter |
SaveAll(IEnumerable)
View Source
Declaration
public int SaveAll(IEnumerable objs)
Returns
System.Int32
Parameters
Type | Name |
---|---|
IEnumerable | objs |
Save(Object)
View Source
Declaration
public bool Save(object obj)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | obj |
SaveAllAsync(IEnumerable, CancellationToken)
View Source
Declaration
public Task<int> SaveAllAsync(IEnumerable objs, CancellationToken token)
Returns
Task<System.Int32>
Parameters
Type | Name |
---|---|
IEnumerable | objs |
CancellationToken | token |
SaveAsync(Object, CancellationToken)
View Source
Declaration
public Task<bool> SaveAsync(object obj, CancellationToken token)
Returns
Task<System.Boolean>
Parameters
Type | Name |
---|---|
System.Object | obj |
CancellationToken | token |
InsertAll(IEnumerable)
View Source
Declaration
public void InsertAll(IEnumerable objs)
Parameters
Type | Name |
---|---|
IEnumerable | objs |
InsertAll(IEnumerable, Action<IDbCommand>)
View Source
Declaration
public void InsertAll(IEnumerable objs, Action<IDbCommand> commandFilter)
Parameters
Type | Name |
---|---|
IEnumerable | objs |
Action<IDbCommand> | commandFilter |
Insert(Object, Boolean)
View Source
Declaration
public long Insert(object obj, bool selectIdentity = false)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.Object | obj |
System.Boolean | selectIdentity |
Insert(Object, Action<IDbCommand>, Boolean)
View Source
Declaration
public long Insert(object obj, Action<IDbCommand> commandFilter, bool selectIdentity = false)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.Object | obj |
Action<IDbCommand> | commandFilter |
System.Boolean | selectIdentity |
UpdateAll(IEnumerable)
View Source
Declaration
public int UpdateAll(IEnumerable objs)
Returns
System.Int32
Parameters
Type | Name |
---|---|
IEnumerable | objs |
UpdateAll(IEnumerable, Action<IDbCommand>)
View Source
Declaration
public int UpdateAll(IEnumerable objs, Action<IDbCommand> commandFilter)
Returns
System.Int32
Parameters
Type | Name |
---|---|
IEnumerable | objs |
Action<IDbCommand> | commandFilter |
Update(Object)
View Source
Declaration
public int Update(object obj)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Object | obj |
UpdateAsync(Object, CancellationToken)
View Source
Declaration
public Task<int> UpdateAsync(object obj, CancellationToken token)
Returns
Task<System.Int32>
Parameters
Type | Name |
---|---|
System.Object | obj |
CancellationToken | token |
Update(Object, Action<IDbCommand>)
View Source
Declaration
public int Update(object obj, Action<IDbCommand> commandFilter)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Object | obj |
Action<IDbCommand> | commandFilter |
DeleteAll()
View Source
Declaration
public int DeleteAll()
Returns
System.Int32
Delete(Object, Object)
View Source
Declaration
public int Delete(object obj, object anonType)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Object | obj |
System.Object | anonType |
DeleteNonDefaults(Object, Object)
View Source
Declaration
public int DeleteNonDefaults(object obj, object filter)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Object | obj |
System.Object | filter |
DeleteById(Object)
View Source
Declaration
public int DeleteById(object id)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Object | id |
DeleteByIds(IEnumerable)
View Source
Declaration
public int DeleteByIds(IEnumerable idValues)
Returns
System.Int32
Parameters
Type | Name |
---|---|
IEnumerable | idValues |
Cast(IEnumerable)
View Source
Declaration
public IEnumerable Cast(IEnumerable results)
Returns
IEnumerable
Parameters
Type | Name |
---|---|
IEnumerable | results |